{extend name="public/base" /}

{block name="title"}添加广告{/block}

{block name="main"}


<textarea name="editor1" id="editor" rows="10" cols="80">
                This is my textarea to be replaced with CKEditor.
            </textarea>

{/block}

{block name="script"}
<script src="/static/admin/lib/ckeditor/ckeditor.js?v=1"></script>
<!--

<script type="text/javascript" src="/static/admin/lib/umeditor/umeditor.config.js?v=1"></script>
<script type="text/javascript" src="/static/admin/lib/umeditor/umeditor.min.js?v=1"></script>

<script src="/static/admin/lib/ckeditor/config.js?v=1"></script>
-->
<script>

CKEDITOR.replace( 'editor' , {
                //customConfig: JS_config.base+'/lib/ckeditor/config.js?v=1',
            });
            
/*
layui.use(['editor'],function(){
    
    layui.editor.render({
        'elem' : '#editor',
    })
    
});*/
</script>
{/block}